import { console } from "inspector";

/*
 * @Description: 轧机震动机组图变换策略
 * @Version: 1.0
 * @Date: 2024-02-27 15:31:57
 * @LastEditTime: 2024-03-13 17:22:44
 */
export function rollingMillStatusHandel(res:any) {
    Object.keys(res).forEach(item =>{
        for (let index = 1; index <= 6; index++) {
            document.getElementById(item + "_"+index)!.style.fill = state[res[item]]
        }
    })
}

const state:any = {
    0:"#00FF00",
    1:"#FA8072",
    2:"#F60000",
    3:"#FFFF00"
}